use avconv
authorMarkus Koschany <apo@gambaru.de>
Sat, 1 Nov 2014 23:57:00 +0000 (00:57 +0100)
committerMarkus Koschany <apo@gambaru.de>
Sun, 2 Nov 2014 12:46:41 +0000 (12:46 +0000)
Use avconv command instead of ffmpeg because the latter is not available on
Debian systems. This should be revisited for Jessie+1.

Forwarded: not-needed

Gbp-Pq: Name use-avconv.patch

tools/ss_extract.cc

index 2a941102d9439f25a295ac22dbad5192e4731e7e..6677b8fe68e978421160982e49c5fb6ea21a5085 100644 (file)
@@ -213,7 +213,7 @@ struct Process {
                                }
                                if (g_mkvcompress) {
                                        std::cerr << ">>> Compressing video into video.m4v" << std::endl;
-                                       std::string cmd = "ffmpeg -i \"" + (path / "video.mpg").string() + "\" -vcodec libx264 -profile main -crf 25 -threads 0 -metadata album=\"" + song.edition + "\" -metadata author=\"" + song.artist + "\" -metadata comment=\"" + song.genre + "\" -metadata title=\"" + song.title + "\" \"" + (path / "video.m4v\"").string();
+                                       std::string cmd = "avconv -i \"" + (path / "video.mpg").string() + "\" -vcodec libx264 -profile main -crf 25 -threads 0 -metadata album=\"" + song.edition + "\" -metadata author=\"" + song.artist + "\" -metadata comment=\"" + song.genre + "\" -metadata title=\"" + song.title + "\" \"" + (path / "video.m4v\"").string();
                                        std::cerr << cmd << std::endl;
                                        if (std::system(cmd.c_str()) == 0) { // FIXME: std::system return value is not portable
                                                fs::remove(path / "video.mpg");